//== SAGITTARIUS ============================================================================

//== BEGINNING OF CODE ===============================================================

#ifndef __SAGUTTARUIS__FUTEX__H_
#define __SAGUTTARUIS__FUTEX__H_

//== INCLUDES ========================================================================

#include "sagittarius/core/SagittariusCore.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef uint32 mutex_t;

#define SG_DEF_MUTEX(name) mutex_t name

void init_mutex(mutex_t *f);
void lock_mutex(mutex_t *f);
void unlock_mutex(mutex_t *f);

#ifdef __cplusplus
}//extern "C"
#endif

#endif
